import { StrBool } from './StrBool';
import { runFoo, runBar, runNull } from './run';
import { log } from './utils';

export function handle(decision: StrBool): void {
  if (StrBool.isFoo(decision)) {
    runFoo();
  } else if (StrBool.isBar(decision)) {
    runBar();
  } else {
    runNull();
  }
  log(StrBool.intoBoolean(decision));
}
